﻿<UserControl
    x:Class="Markup.Programming.Samples.SelectOnFocus"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:p="http://markupprogramming.codeplex.com/markup/programming"
    Height="300" Width="300">
    <Grid>
        <StackPanel>
            <TextBox Text="Normal TextBox"/>
            <TextBox Text="SelectOnFocus TextBox">
                <p:Attached.Operations>
                    <p:CallHandler Path="GotFocus => @AssociatedObject.SelectAll()"/>
                </p:Attached.Operations>
            </TextBox>
        </StackPanel>
    </Grid>
</UserControl>
